# Contributor: Peter Shkenev <santurysim@gmail.com>
# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=xfe
pkgver=1.46.1
pkgrel=0
pkgdesc="MS-Explorer or Commander like file manager for X"
url="http://roland65.free.fr/xfe/index.php?page=home"
arch="all"
license="GPL-2.0-only"
makedepends="
	fox-dev
	libx11-dev
	freetype-dev
	libxft-dev
	xcb-util-dev
	gettext-dev
	intltool
	"
subpackages="$pkgname-doc $pkgname-lang $pkgname-xfi $pkgname-xfp $pkgname-xfw"
source="
	https://downloads.sourceforge.net/xfe/xfe-$pkgver.tar.xz
	10-fix-build.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

xfi() {
	pkgdesc="$pkgdesc (image viewer)"
	amove usr/bin/xfi
}

xfp() {
	pkgdesc="$pkgdesc (DEB/RPM package viewer)"
	amove usr/bin/xfp
}

xfw() {
	pkgdesc="$pkgdesc (text editor)"
	amove usr/bin/xfw
}

sha512sums="
bdd0eb017797e8e5d0ea61e86cbcff686eaee5dd5a14fbe770630ccd0c31f2ea6e544e66cc8bc178760670e821caae388d12ba285c8556f618a540cffeb61593  xfe-1.46.1.tar.xz
68e0357c2c13a1856d2de11f0b118ae0299e6c47654d9f5b03bc9cca6e675195694ed7ff408eb41546da90b26bc62d7f820399712714f7a79773d5c6adaef67d  10-fix-build.patch
"
